Skip to content

chore: upgrade to C# 14.0#4857

Merged
Flash0ver merged 5 commits intomainfrom
chore/csharp-14.0
Jan 28, 2026
Merged

chore: upgrade to C# 14.0#4857
Flash0ver merged 5 commits intomainfrom
chore/csharp-14.0

Conversation

@Flash0ver
Copy link
Member

@Flash0ver Flash0ver commented Jan 21, 2026

Upgrade to C# 14.0

See Language Feature Status.

Also a prerequisite to upgrade to the latest version of Polyfill, after SimonCropp/Polyfill#454.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.86%. Comparing base (a45876f) to head (3b361b9).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...y.Android.AssemblyReader/ELFSharp/UImage/UImage.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4857   +/-   ##
=======================================
  Coverage   73.85%   73.86%           
=======================================
  Files         483      483           
  Lines       17577    17577           
  Branches     3464     3464           
=======================================
+ Hits        12982    12983    +1     
  Misses       3741     3741           
+ Partials      854      853    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Compression = (CompressionType)reader.ReadByte();
var nameAsBytes = reader.ReadBytes(32);
Name = Encoding.UTF8.GetString(nameAsBytes.Reverse().SkipWhile(x => x == 0).Reverse().ToArray());
Name = Encoding.UTF8.GetString(Enumerable.Reverse(nameAsBytes).SkipWhile(x => x == 0).Reverse().ToArray());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: other method bound with [Proposal]: First-Class Span Types

byte[] bytes = new byte[0];
_ = bytes.Reverse();

now prefers public static void Reverse<T>(this Span<T> span) in System.MemoryExtensions (if available),
rather than public static IEnumerable<TSource> Reverse<TSource>(this TSource[] source) in System.Linq.Enumerable.
Invoking the LINQ extension method explicitly instead.

See https://learn.microsoft.com/dotnet/csharp/whats-new/breaking-changes/compiler%20breaking%20changes%20-%20dotnet%2010#enumerablereverse

@Flash0ver Flash0ver self-assigned this Jan 21, 2026
@Flash0ver Flash0ver marked this pull request as ready for review January 22, 2026 10:17
@jamescrosswell jamescrosswell self-requested a review January 27, 2026 21:39
Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested adding one comment, but otherwise all good 👍🏻

Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
@Flash0ver Flash0ver merged commit f901c73 into main Jan 28, 2026
35 checks passed
@Flash0ver Flash0ver deleted the chore/csharp-14.0 branch January 28, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants